package com.hmall.mapper;

import com.hmall.model.MallAuctionItemDetail;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallAuctionItemDetailMapper extends MyMapper<MallAuctionItemDetail> {
    List<MallAuctionItemDetail> selectByItemId(@Param("id") Integer id);

    MallAuctionItemDetail selectByCode(@Param("auction_item_id") Integer auction_item_id,@Param("material_code") String materialCode,@Param("color") String color,
                                       @Param("grade") String grade,@Param("twisting") String twisting,@Param("machine_no") String machineNo);

    void deleteByItemId(@Param("id") Integer id);
}